import config from "@/config"
import http from "@/utils/request"

export default {
  getTheatre: {
    url: `${config.API_URL}/theatre/pageTheatreList`,
    name: "获取剧场列表",
    get: async function(params){
      return await http.get(this.url,params)
    }
  },
  theatreDetail: {
    url: `${config.API_URL}/theatre/getByTheatreId/`,
    name: "获取剧场详情",
    get: async function(params){
      return await http.get(this.url+params)
    }
  },
  theatreUpload: {
    url: `${config.API_URL}/theatre/theatreEdit`,
    name: "上传剧场内容",
    post: async function(data){
      return await http.post(this.url,data)
    }
  }
}